-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove scalaShadowing
from the compiler
#10708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove scalaShadowing
from the compiler
#10708
Conversation
1a4e9e3
to
3a02ac2
Compare
// if the scala.compiletime package is missing, the dotty library must be missing | ||
(prefix.symbol.owner == defn.RootClass && prefix.name == nme.scala && selector == nme.compiletime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't really useful, the point of checking for scalaShadowing before is that we explicitly force it when starting the compiler, but the same isn't true for scala.compiletime, so there is no reason to special-case it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we force something in the dotty library to be able to detect if it is not on the classpath. Or should we drop the check and just fail with a random non existent symbol error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would drop the check for now, we want to avoid cascade of errors when symbols are missing, but this should be achievable without special casing dotty-library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dropped the check
3a02ac2
to
24eb6cf
Compare
@@ -16,7 +16,9 @@ class MissingCoreLibTests { | |||
val reporter = Main.process(options) | |||
assertEquals(1, reporter.errorCount) | |||
val errorMessage = reporter.allErrors.head.message | |||
assertTrue(errorMessage.contains("Make sure the compiler core libraries are on the classpath")) | |||
// FIXME: We currently only detect if the scala library is missing but not the dotty library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will open an issue referencing this once it is merged
This is the first step towards fixing #10707